package com.tencent.www.test1;

public class Phonetest {
    public static void main(String[] args) {
        Phone p=new Phone();//默认的系统自己创建的无参构造
        p.brand="iphone";
        p.price=7999;
        System.out.println(p.brand);
        System.out.println(p.price);
        p.call();
        p.play();
        p.SetAge(19);
        System.out.println(p.GetAge());

        Phone p2=new Phone();
        p2.brand="mi";
        p2.price=1999;
        System.out.println(p2.brand);
        System.out.println(p2.price);

        p.call();
        p.play();
    }
}
